﻿#include "maininterface.h"
#include "ui_maininterface.h"
#include<QDebug>
#include"admin_log_in.h"
#include"stu_infor_manage.h"
#include"stu_sign_in.h"
#include"record.h"
MainInterface::MainInterface(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MainInterface)
{
    ui->setupUi(this);
}

MainInterface::~MainInterface()
{
    delete ui;
    qDebug()<<"aaaaaa";

}
//设置是哪个管理员登录进来
void MainInterface::setAdmin(QString name)
{
    this->Admin_name = name;
}

//
void MainInterface::on_pB1_clicked()
{
    stu_infor_Manage *w =new stu_infor_Manage();
    w->show();
    w->setWindowTitle(QString::fromLocal8Bit("学生信息管理"));
    this->close();

}

void MainInterface::on_pB2_clicked()
{
   Stu_sign_in *w=new Stu_sign_in();
    w->show();
    w->setWindowTitle(QString::fromLocal8Bit("学生签到界面"));
    this->close();
}

void MainInterface::on_pB3_clicked()
{
    record *w=new record();
    w->show();
    w->setWindowTitle(QString::fromLocal8Bit("学生考勤记录"));
    this->close();
}

void MainInterface::on_pBback_clicked()
{
    admin_log_in *w=new admin_log_in();
    w->show();
    this->close();
}
